import Request from '@/axios/request'

export function getDemos(params) {
  return Request.get('demos', { params })
}

export function createDemo() {
  return Request.get('demos/create')
}

export function storeDemo(data) {
  return Request.post('demos', data)
}

export function updateDemo(id, data) {
  return Request.put(`demos/${id}`, data)
}

export function editDemo(id) {
  return Request.get(`demos/${id}/edit`)
}

export function destroyDemo(id) {
  return Request.delete(`demos/${id}`)
}

export function showDemo(id) {
  return Request.get(`demos/${id}`)
}
